//
//  CourseBookingsViewController.h
//  mUBB
//
//  Created by Cosmin Stirbu on 3/3/13.
//  Copyright (c) 2013 Cosmin Stirbu. All rights reserved.
//

#import "BaseViewController.h"
#import "Course.h"
#import "BookingsProtocol.h"
#import <EventKitUI/EventKitUI.h>
#import "UpdateBookingViewController.h"

@interface CourseBookingsViewController : BaseViewController<BookingsProtocol, UITableViewDataSource, UITableViewDelegate, UIActionSheetDelegate, EKEventEditViewDelegate, UpdateBookingDelegate, UIAlertViewDelegate> {
    @private
    // The course for which we get the bookings
    Course *_course;
    
    // Grouped Bookings
    NSDictionary *_groupedBookings;
    
    // Sorted types of classes
    NSArray *_sortedTypesOfClasses;
    
    // Displayed bookings
    NSArray *_displayedBookings;
    
    // Selected Index
    NSIndexPath *selectedIndex;
}

// Category Segmented Control (Course | Seminar | Lab | Other)
@property (unsafe_unretained, nonatomic) IBOutlet UISegmentedControl *categorySegmentedControl;

// Bookings Table View
@property (unsafe_unretained, nonatomic) IBOutlet UITableView *bookingsTableView;

// Category Toolbar
@property (unsafe_unretained, nonatomic) IBOutlet UIToolbar *categoryToolbar;


- (id)initWithNibName:(NSString *)nibNameOrNil course:(Course *)course;

@end
